using System;
using System.Collections.Generic;
using System.Text;
using Shc.Sql;
using Shc.Json;
namespace CLZ.Data
{
	public static class TableViewWarehouseList
	{
		public const string Table = "View_WarehouseList";
		public const string WarehouseID = "WarehouseID";
		public const string WarehousingGoodsID = "WarehousingGoodsID";
		public const string VegetablesID = "VegetablesID";
		public const string OriginalPrice = "OriginalPrice";
		public const string TotalQty = "TotalQty";
		public const string STotalQty = "STotalQty";
		public const string EnteringDate = "EnteringDate";
		public const string Creater = "Creater";
		public const string CreatedBy = "CreatedBy";
		public const string Created = "Created";
		public const string Modified = "Modified";
		public const string ModifiedBy = "ModifiedBy";
		public const string ModifiedByID = "ModifiedByID";
		public const string VegetablesName = "VegetablesName";
		public const string VegetablesTypeID = "VegetablesTypeID";
		public const string NumberOfUnitsID = "NumberOfUnitsID";
		public const string NumberOfUnitsName = "NumberOfUnitsName";
		public const string ImageUrl = "ImageUrl";
		public const string Specification = "Specification";
		public const string CookingMethods = "CookingMethods";
		public const string Description = "Description";
		public const string Weigth = "Weigth";
		public const string ProductType = "ProductType";
		public const string VegetablesStatus = "VegetablesStatus";
		public const string VegetablesTypeName = "VegetablesTypeName";
		public const string ProductCategoryID = "ProductCategoryID";
		public const string CategoryName = "CategoryName";
		public const string VegetablesNo = "VegetablesNo";
	}
	
	[Serializable]
	public class BaseViewWarehouseList
		: IDbSessionEntity, IJsonClass
	{
		int m_WarehouseID;
		/// <summary>
        /// 
        /// </summary>
        public int WarehouseID
        {
            get { return m_WarehouseID; }
            set { m_WarehouseID = value; }
        }
		
		int m_WarehousingGoodsID;
		/// <summary>
        /// 
        /// </summary>
        public int WarehousingGoodsID
        {
            get { return m_WarehousingGoodsID; }
            set { m_WarehousingGoodsID = value; }
        }
		
		int? m_VegetablesID;
		/// <summary>
        /// 
        /// </summary>
        public int? VegetablesID
        {
            get { return m_VegetablesID; }
            set { m_VegetablesID = value; }
        }
		
		double m_OriginalPrice;
		/// <summary>
        /// 
        /// </summary>
        public double OriginalPrice
        {
            get { return m_OriginalPrice; }
            set { m_OriginalPrice = value; }
        }
		
		double m_TotalQty;
		/// <summary>
        /// 
        /// </summary>
        public double TotalQty
        {
            get { return m_TotalQty; }
            set { m_TotalQty = value; }
        }
		
		double m_STotalQty;
		/// <summary>
        /// 
        /// </summary>
        public double STotalQty
        {
            get { return m_STotalQty; }
            set { m_STotalQty = value; }
        }
		
		DateTime m_EnteringDate;
		/// <summary>
        /// 
        /// </summary>
        public DateTime EnteringDate
        {
            get { return m_EnteringDate; }
            set { m_EnteringDate = value; }
        }
		
		int m_Creater;
		/// <summary>
        /// 
        /// </summary>
        public int Creater
        {
            get { return m_Creater; }
            set { m_Creater = value; }
        }
		
		string m_CreatedBy;
		/// <summary>
        /// 
        /// </summary>
        public string CreatedBy
        {
            get { return m_CreatedBy; }
            set { m_CreatedBy = value; }
        }
		
		DateTime m_Created;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Created
        {
            get { return m_Created; }
            set { m_Created = value; }
        }
		
		DateTime m_Modified;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Modified
        {
            get { return m_Modified; }
            set { m_Modified = value; }
        }
		
		string m_ModifiedBy;
		/// <summary>
        /// 
        /// </summary>
        public string ModifiedBy
        {
            get { return m_ModifiedBy; }
            set { m_ModifiedBy = value; }
        }
		
		int? m_ModifiedByID;
		/// <summary>
        /// 
        /// </summary>
        public int? ModifiedByID
        {
            get { return m_ModifiedByID; }
            set { m_ModifiedByID = value; }
        }
		
		string m_VegetablesName;
		/// <summary>
        /// 
        /// </summary>
        public string VegetablesName
        {
            get { return m_VegetablesName; }
            set { m_VegetablesName = value; }
        }
		
		int? m_VegetablesTypeID;
		/// <summary>
        /// 
        /// </summary>
        public int? VegetablesTypeID
        {
            get { return m_VegetablesTypeID; }
            set { m_VegetablesTypeID = value; }
        }
		
		int? m_NumberOfUnitsID;
		/// <summary>
        /// 
        /// </summary>
        public int? NumberOfUnitsID
        {
            get { return m_NumberOfUnitsID; }
            set { m_NumberOfUnitsID = value; }
        }
		
		string m_NumberOfUnitsName;
		/// <summary>
        /// 
        /// </summary>
        public string NumberOfUnitsName
        {
            get { return m_NumberOfUnitsName; }
            set { m_NumberOfUnitsName = value; }
        }
		
		string m_ImageUrl;
		/// <summary>
        /// 
        /// </summary>
        public string ImageUrl
        {
            get { return m_ImageUrl; }
            set { m_ImageUrl = value; }
        }
		
		string m_Specification;
		/// <summary>
        /// 
        /// </summary>
        public string Specification
        {
            get { return m_Specification; }
            set { m_Specification = value; }
        }
		
		string m_CookingMethods;
		/// <summary>
        /// 
        /// </summary>
        public string CookingMethods
        {
            get { return m_CookingMethods; }
            set { m_CookingMethods = value; }
        }
		
		string m_Description;
		/// <summary>
        /// 
        /// </summary>
        public string Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }
		
		double m_Weigth;
		/// <summary>
        /// 
        /// </summary>
        public double Weigth
        {
            get { return m_Weigth; }
            set { m_Weigth = value; }
        }
		
		int m_ProductType;
		/// <summary>
        /// 
        /// </summary>
        public int ProductType
        {
            get { return m_ProductType; }
            set { m_ProductType = value; }
        }
		
		int m_VegetablesStatus;
		/// <summary>
        /// 
        /// </summary>
        public int VegetablesStatus
        {
            get { return m_VegetablesStatus; }
            set { m_VegetablesStatus = value; }
        }
		
		string m_VegetablesTypeName;
		/// <summary>
        /// 
        /// </summary>
        public string VegetablesTypeName
        {
            get { return m_VegetablesTypeName; }
            set { m_VegetablesTypeName = value; }
        }
		
		int? m_ProductCategoryID;
		/// <summary>
        /// 
        /// </summary>
        public int? ProductCategoryID
        {
            get { return m_ProductCategoryID; }
            set { m_ProductCategoryID = value; }
        }
		
		string m_CategoryName;
		/// <summary>
        /// 
        /// </summary>
        public string CategoryName
        {
            get { return m_CategoryName; }
            set { m_CategoryName = value; }
        }
		
		string m_VegetablesNo;
		/// <summary>
        /// 
        /// </summary>
        public string VegetablesNo
        {
            get { return m_VegetablesNo; }
            set { m_VegetablesNo = value; }
        }
		
		
		#region IDbSessionEntity Members
		public void ReadDBData(RowDataReader reader)
        {
            m_WarehouseID = reader[TableViewWarehouseList.WarehouseID];
            m_WarehousingGoodsID = reader[TableViewWarehouseList.WarehousingGoodsID];
            m_VegetablesID = reader[TableViewWarehouseList.VegetablesID];
            m_OriginalPrice = reader[TableViewWarehouseList.OriginalPrice];
            m_TotalQty = reader[TableViewWarehouseList.TotalQty];
            m_STotalQty = reader[TableViewWarehouseList.STotalQty];
            m_EnteringDate = reader[TableViewWarehouseList.EnteringDate];
            m_Creater = reader[TableViewWarehouseList.Creater];
            m_CreatedBy = reader[TableViewWarehouseList.CreatedBy];
            m_Created = reader[TableViewWarehouseList.Created];
            m_Modified = reader[TableViewWarehouseList.Modified];
            m_ModifiedBy = reader[TableViewWarehouseList.ModifiedBy];
            m_ModifiedByID = reader[TableViewWarehouseList.ModifiedByID];
            m_VegetablesName = reader[TableViewWarehouseList.VegetablesName];
            m_VegetablesTypeID = reader[TableViewWarehouseList.VegetablesTypeID];
            m_NumberOfUnitsID = reader[TableViewWarehouseList.NumberOfUnitsID];
            m_NumberOfUnitsName = reader[TableViewWarehouseList.NumberOfUnitsName];
            m_ImageUrl = reader[TableViewWarehouseList.ImageUrl];
            m_Specification = reader[TableViewWarehouseList.Specification];
            m_CookingMethods = reader[TableViewWarehouseList.CookingMethods];
            m_Description = reader[TableViewWarehouseList.Description];
            m_Weigth = reader[TableViewWarehouseList.Weigth];
            m_ProductType = reader[TableViewWarehouseList.ProductType];
            m_VegetablesStatus = reader[TableViewWarehouseList.VegetablesStatus];
            m_VegetablesTypeName = reader[TableViewWarehouseList.VegetablesTypeName];
            m_ProductCategoryID = reader[TableViewWarehouseList.ProductCategoryID];
            m_CategoryName = reader[TableViewWarehouseList.CategoryName];
            m_VegetablesNo = reader[TableViewWarehouseList.VegetablesNo];
        }
		
		public void WriteDBData(RowDataWriter writer)
        {
        }

        public void SetIdentityAfterInsert(DBObject idd)
        {
        }
		
		public string TableName
        {
            get { return TableViewWarehouseList.Table; }
        }
		#endregion
		
		
		#region IJsonClass Members

        public void JsonDeSerializeObj(JsonHashTable hashToRead)
        {
             m_WarehouseID = hashToRead["WarehouseID"];
			 
             m_WarehousingGoodsID = hashToRead["WarehousingGoodsID"];
			 
             m_VegetablesID = hashToRead["VegetablesID"];
			 
             m_OriginalPrice = hashToRead["OriginalPrice"];
			 
             m_TotalQty = hashToRead["TotalQty"];
			 
             m_STotalQty = hashToRead["STotalQty"];
			 
             m_EnteringDate = hashToRead["EnteringDate"];
			 
             m_Creater = hashToRead["Creater"];
			 
             m_CreatedBy = hashToRead["CreatedBy"];
			 
             m_Created = hashToRead["Created"];
			 
             m_Modified = hashToRead["Modified"];
			 
             m_ModifiedBy = hashToRead["ModifiedBy"];
			 
             m_ModifiedByID = hashToRead["ModifiedByID"];
			 
             m_VegetablesName = hashToRead["VegetablesName"];
			 
             m_VegetablesTypeID = hashToRead["VegetablesTypeID"];
			 
             m_NumberOfUnitsID = hashToRead["NumberOfUnitsID"];
			 
             m_NumberOfUnitsName = hashToRead["NumberOfUnitsName"];
			 
             m_ImageUrl = hashToRead["ImageUrl"];
			 
             m_Specification = hashToRead["Specification"];
			 
             m_CookingMethods = hashToRead["CookingMethods"];
			 
             m_Description = hashToRead["Description"];
			 
             m_Weigth = hashToRead["Weigth"];
			 
             m_ProductType = hashToRead["ProductType"];
			 
             m_VegetablesStatus = hashToRead["VegetablesStatus"];
			 
             m_VegetablesTypeName = hashToRead["VegetablesTypeName"];
			 
             m_ProductCategoryID = hashToRead["ProductCategoryID"];
			 
             m_CategoryName = hashToRead["CategoryName"];
			 
             m_VegetablesNo = hashToRead["VegetablesNo"];
			 
        }

        public void JsonSerializeObj(JsonHashTable hashToFill)
        {
            hashToFill["WarehouseID"] = WarehouseID;
			
            hashToFill["WarehousingGoodsID"] = WarehousingGoodsID;
			
            hashToFill["VegetablesID"] = VegetablesID;
			
            hashToFill["OriginalPrice"] = OriginalPrice;
			
            hashToFill["TotalQty"] = TotalQty;
			
            hashToFill["STotalQty"] = STotalQty;
			
            hashToFill["EnteringDate"] = EnteringDate;
			
            hashToFill["Creater"] = Creater;
			
            hashToFill["CreatedBy"] = CreatedBy;
			
            hashToFill["Created"] = Created;
			
            hashToFill["Modified"] = Modified;
			
            hashToFill["ModifiedBy"] = ModifiedBy;
			
            hashToFill["ModifiedByID"] = ModifiedByID;
			
            hashToFill["VegetablesName"] = VegetablesName;
			
            hashToFill["VegetablesTypeID"] = VegetablesTypeID;
			
            hashToFill["NumberOfUnitsID"] = NumberOfUnitsID;
			
            hashToFill["NumberOfUnitsName"] = NumberOfUnitsName;
			
            hashToFill["ImageUrl"] = ImageUrl;
			
            hashToFill["Specification"] = Specification;
			
            hashToFill["CookingMethods"] = CookingMethods;
			
            hashToFill["Description"] = Description;
			
            hashToFill["Weigth"] = Weigth;
			
            hashToFill["ProductType"] = ProductType;
			
            hashToFill["VegetablesStatus"] = VegetablesStatus;
			
            hashToFill["VegetablesTypeName"] = VegetablesTypeName;
			
            hashToFill["ProductCategoryID"] = ProductCategoryID;
			
            hashToFill["CategoryName"] = CategoryName;
			
            hashToFill["VegetablesNo"] = VegetablesNo;
			
        }

        #endregion
		
	}
}
